package mesweb.mesweb.service.impl.produce;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import mesweb.mesweb.dto.ProducePlan.DayReportDetailConditionDto;
import mesweb.mesweb.entity.produce.ProduceWEDF;
import mesweb.mesweb.mapper.produce.ProduceWEDFMapper;
import mesweb.mesweb.service.produce.IProduceWEDFService;
import mesweb.mesweb.vo.produce.ProduceWEDFVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 物料齐套
 * @Author: jeecg-boot
 * @Date:   2021-09-02
 * @Version: V1.0
 */
@Service
public class ProduceWEDFServiceImpl extends ServiceImpl<ProduceWEDFMapper, ProduceWEDF> implements IProduceWEDFService {

    @Autowired
    private  ProduceWEDFMapper produceWEDFMapper;
    @Override
    public IPage<ProduceWEDFVo> checkCurrentWEDF(Page page, QueryWrapper queryWrapper) {
        return produceWEDFMapper.checkCurrentWEDF(page,queryWrapper);
    }

    @Override
    public List<ProduceWEDFVo> checkCurrentWEDF(QueryWrapper queryWrapper) {
        return produceWEDFMapper.checkCurrentWEDF(queryWrapper);
    }

    @Override
    public IPage<ProduceWEDFVo> getProductMaterial(Page page, DayReportDetailConditionDto dayReportDetailConditionDto) {
        return produceWEDFMapper.getProductMaterial(page,dayReportDetailConditionDto);
    }

    @Override
    public List<ProduceWEDFVo> getProductMaterial(DayReportDetailConditionDto dayReportDetailConditionDto) {
        return produceWEDFMapper.getProductMaterial(dayReportDetailConditionDto);
    }

    @Override
    public IPage<ProduceWEDFVo> getOrderProductMaterial(Page page,  DayReportDetailConditionDto dayReportDetailConditionDto) {
        return produceWEDFMapper.getOrderProductMaterial(page,dayReportDetailConditionDto);
    }

    @Override
    public List<ProduceWEDFVo> getOrderProductMaterial(DayReportDetailConditionDto dayReportDetailConditionDto) {
        return produceWEDFMapper.getOrderProductMaterial(dayReportDetailConditionDto);
    }
}
